package edu.sctu.practice.class01.zcy.month10.test02;

/**
 * Created by zcy on 2015/10/8.
 */
public class Circle {

    private float radius;

    public static int numOfObjects = 0;

    public Circle(float radius) {

        this.radius = radius;
        numOfObjects++;
    }

    public float getCircleArea(){

        float area;
        final float p = 3.14f;

        area = p*(radius*radius);
        return area;
    }

    public float getRadius() {
        return radius;
    }
}
